<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div id="all" >
  <div id="add_div_body">
 		<form  action="${pageContext.request.contextPath}/role/update" id="add_role_form" method="post" id="add_role_form"
 		 class="pageForm required-validate" onsubmit="return iframeCallback(this,navTabAjaxDone);">
 			<div layouth="56" class="pageFormContent" style="height: 150px; ">
				<p>
					<label>角色名：</label>
					<input type="hidden"  id="id" name="id" value="${role.id }"/>
					<input type="text" class="required textInput" id="name" name="name" value="${role.name }"/>
				</p>
				<p>
					<label>角色key：</label>
					<input type="text" class="required textInput" id="roleKey" name="roleKey" value="${role.roleKey }"/>
				</p>
				<p>
					<label>是否禁用：</label>
					
					<input name="enable" class="textInput" type="radio" <c:if test="${role.enable == 1}">checked="checked"</c:if>  value="1"/>
					<label style="width: 50px;">正常</label>
					<input name="enable" class="textInput" type="radio" <c:if test="${role.enable == 0}">checked="checked"</c:if> value="0"/>
					<label style="width: 50px;">禁用</label>　
				</p>
				<p>
					<label>描述：</label>
					<input type="text" class="textInput" id="description" name="description" value="${role.description }"/>
				</p>
				
			</div>
	 			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit" >保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button class="close" type="button">取消</button></div></div>
					</li>
				</ul>
			</div>
 		</form>
  </div>
</div>